﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master"
    AutoEventWireup="true" CodeBehind="AddCompanyName.aspx.cs" Inherits="HRM.UI.HRManagerUI.Configuration.AddCompanyName" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Configuration/AddCompanyNameCss.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript" language="javascript">

        function CheckField() {
            if (document.getElementById("<%=txtCompanyName.ClientID%>").value == "") {
                document.getElementById("<%=msgLabel.ClientID%>").textContent = "Please Enter Company Name!";
                document.getElementById("<%=msgLabel.ClientID%>").style.color = "red";
                document.getElementById("<%=txtCompanyName.ClientID%>").focus();
                return false;
            }
            if (document.getElementById("<%=txtCompanyAddress.ClientID%>").Value == "") {
                document.getElementById("<%=msgLabel.ClientID%>").textContent = "Please Enter Company Address!";
                document.getElementById("<%=msgLabel.ClientID%>").style.color = "red";
                document.getElementById("<%=txtCompanyAddress.ClientID%>").focus();
                return false;
            }

            return true;
        }
  

    </script>
    <fieldset>
        <legend>Add Company Info</legend>
        <table class="AddCompanyTB">
            <tr>
                <td colspan="2" style="text-align: center">
                    <asp:Label runat="server" ID="msgLabel"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="Label">
                    Company Name
                </td>
                <td class="Field">
                    <input type="text" runat="server" id="txtCompanyName" class="textboxinput" /><span
                        class="estaricStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="Label">
                    Company Address
                </td>
                <td class="Field">
                    <input type="text" runat="server" id="txtCompanyAddress" class="textboxinput" /><span
                        class="estaricStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="Label">
                </td>
                <td class="Field">
                    <input type="submit" onserverclick="SaveCompany" runat="server" id="addCompany" value="Save" class="btnCss" onclick="return CheckField()"/>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
